package com.dhecp.project.api.mapper;

import com.dhecp.core.genericDao.GenericDao;
import com.dhecp.project.api.domain.LogisticsMmode;

import java.util.List;
import java.util.Map;

/**
 * DAO
 * @author fxz
 */
public interface LogsticsMmodeMapper extends GenericDao<LogisticsMmode, String>  {

	/**
     * 查询实体
     * @author Jason
	 */
	List<LogisticsMmode> findLogisticsMmode(Map<String, Object> params);

	/**
     * 查询单个实体
     * @author Jason
	 */
	LogisticsMmode queryFirstByGuid(Map<String, Object> params);

	/**
	 * 判断是否有重复物流方式
	 * @param logsticsPattern
	 * @return
	 */
	int countByNameLogsticsWay(LogisticsMmode logsticsPattern);

	/**
	 * 新增实体
     * @author Jason
	 */
	int insertLogisticsMmode(LogisticsMmode entity);

	/**
	 * 通过guid修改实体
     * @author Jason
	 */
	int updateByGuid(LogisticsMmode entity);

	/**
	 * 通过guid删除数据
	 * @param params
	 * @return
	 */
	int deleteByGuid(LogisticsMmode logsticsPattern);

	/**
	 * code查询单个实体
	 * @author Jason
	 */
	LogisticsMmode queryFirstByCode(Map<String, Object> params);

}
